<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>音频可视化</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      width: 100vw;
      height: 100vh;
      background: #000;
    }
    canvas {
      position: absolute;
      top: 0;
      left: 0;
      border-bottom: 1px solid #fff;
      width: 100%;
      height: 40vh;
    }
    #canvas1 {
      top: calc(40vh + 1px);
    }
    audio {
      position: absolute;
      top: 81%;
      left: 50%;
      margin-left: -150px;
    }
    #color {
      position: absolute;
      top: 81%;
      left: 66%;
    }
  </style>
</head>
<body>
  <canvas id="canvas"></canvas>
  <canvas id="canvas1"></canvas>
  <audio width="300" height="50" src="./assets/07.mp3" controls></audio>
  <input type="color" name="1" id="color" value="#ff0000">
  <script src="./index.js"></script>
</body>
</html>